.edit-box {
  width: 90vw;
  height: 80vh;
  background: #f1f3f4;
  border-radius: 5px;
  margin: auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  flex-direction: column;
  transition: 1s;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  .gifCanvas {
    width: fit-content;
    // height: fit-content;
    height: unset;
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    background-image: linear-gradient(
        45deg,
        #d0d0d0 26%,
        transparent 0,
        transparent 75%,
        #d0d0d0 0
      ),
      linear-gradient(
        45deg,
        #d0d0d0 26%,
        transparent 0,
        transparent 75%,
        #d0d0d0 0
      );
    canvas {
      width: 100%;
      height: 100%;
    }
  }
  .image-table {
    flex: 1;
    max-height: 100%;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 5px;
    padding: 10px;
    .edit-image-box-item {
      opacity: 0.9;
      // 透明网格背景
      background-image: linear-gradient(
          45deg,
          #d0d0d0 26%,
          transparent 0,
          transparent 75%,
          #d0d0d0 0
        ),
        linear-gradient(
          45deg,
          #d0d0d0 26%,
          transparent 0,
          transparent 75%,
          #d0d0d0 0
        );
      background-size: 30px 30px;
      background-position: 0 0, 15px 15px;
      border: 2px solid #5d6cc3;
      border-radius: 5px;
      width: 120px;
      height: 120px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: 0.3s;
      &:hover {
        opacity: 1;
        border-color: #0078d4;
        transform: scale(1.1);
        cursor: pointer;
        z-index: 3;
      }
      img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 5px;
        transition: 0.3s;
      }
    }
  }
  .content {
    display: flex;
    width: 100%;
    gap: 20px;
    max-height: calc(100% - 100px);
    align-items: center;
    padding: 20px;
  }
  .image-edit-btns {
    height: 70px;
    display: flex;
    align-items: center;
    gap: 20px;
    .btn {
      padding: 5px 10px;
    }
  }
}
.edit-box-hide {
  border-radius: 50%;
  // width: 200px;
  height: 200px;
  overflow: hidden;
  transform: translate(-50%, -1000px) rotateY(180deg);
}
